import lazyLoading from './lazyLoading'
export default [
    {
        //name: 'App',//因为当某个路由有子级路由的时候，这时候父级路由需要一个默认的路由，所以父级路由不能定义`name`属性，SO解决办法是：即去除父级的`name`属性即可。
        path: '/',
        component: require('../App'),
        children:[
            {name: 'Home',path: '/',component: lazyLoading('test/demo2')},
            {name: 'articalEdit',path: 'edit',component: lazyLoading('customer/edit'),meta:{title:'编辑文章'}},
            {name: 'Test',path: '/test',component: lazyLoading('test/demo1')},
            // {name: 'Test2',path: '/test2/:id?',component: lazyLoading('test/demo2'),props: (route) => ({ pParams: route.params })},
            // {name: 'Home',path: '/',component: lazyLoading('Home')},
            /*消息管理*/
            // {
            //     name: 'message',path: 'message',component: lazyLoading('message/index'),redirect: '/message/list',
            //     children:[
            //         {name: 'messageList',path: 'list',component: lazyLoading('message/list'),meta:{title:'消息列表'}},
            //         {name: 'messageDetail',path: 'detail/:id',component: lazyLoading('message/detail'),props: (route) => ({ pParams: route.params }),meta:{title:'消息详情'}},
            //         {name: 'messageAdd',path: 'add',component: lazyLoading('message/add'),meta:{title:'消息增加'}},
            //     ]
            // },
            // 咨询管理 
            {
                name: 'artical',path: 'artical',component: lazyLoading('customer/list'),
                // children:[
                //     {name: 'artical',path: 'list',component: lazyLoading('customer/list'),meta:{title:'文章列表'}},
                //     {name: 'articalEdit',path: 'edit',component: lazyLoading('customer/edit'),meta:{title:'编辑文章'}},
                //     // {name: 'conferenceList',path: 'list',component: lazyLoading('conference/list'),meta:{title:'会议列表'}},
                //     // {name: 'conferenceFilesList',path: 'filesList',component: lazyLoading('conference/listFiles'),meta:{title:'会议文件列表'}},
                //     // {name: 'conferenceDetail',path: 'detail/:id',component: lazyLoading('conference/detail'),props: (route) => ({ pParams: route.params }) ,meta:{title:'会议详情'}},
                //     // {name: 'conferencePower',path: 'power',component: lazyLoading('conference/power'),meta:{title:'会议权限详情'}},

                //     // {name: 'conferenceChildList',path: 'childList/:id',component: lazyLoading('conference/listChild'),props: (route) => ({ pParams: route.params, pQuery: route.query }),meta:{title:'分活动{title}'} },

                //     // {name: 'conferenceChildWithList',path: 'childWithList/:id',component: lazyLoading('conference/listChildWith'),props: (route) => ({ pParams: route.params, pQuery: route.query }),meta:{title:'分会议{title}'} },
                // ]
            },
            {
                name: 'Test',path: 'Test',component: lazyLoading('customer/list'),
            }
            /*会议管理员管理*/
            // {
            //     name: 'workerPerson',path: 'workerPerson',component: lazyLoading('workerPerson/index'),redirect: '/workerPerson/list',
            //     children:[
            //         {name: 'workerPersonList',path: 'list',component: lazyLoading('workerPerson/list'),meta:{title:'管理员列表'}},
            //         {name: 'workerPersonDetail',path: 'detail/:id',component: lazyLoading('workerPerson/detail'),props: (route) => ({ pParams: route.params }),meta:{title:'管理员详情'} },
            //     ]
            // },
            /*录入管理员管理*/
            // {
            //     name: 'workerWrite',path: 'workerWrite',component: lazyLoading('workerWrite/index'),redirect: '/workerWrite/list',
            //     children:[
            //         {name: 'workerWriteList',path: 'list',component: lazyLoading('workerWrite/list'),meta:{title:'录入员列表'}},
            //         {name: 'workerWriteDetail',path: 'detail/:id',component: lazyLoading('workerWrite/detail'),props: (route) => ({ pParams: route.params }),meta:{title:'录入员详情'} },
            //         {name: 'workerWriteVerityList',path: 'verityList',component: lazyLoading('workerWrite/listVerity'),meta:{title:'客商申请记录列表'}},
            //         {name: 'workerWriteVerityDetail',path: 'verityDetail/:id',component: lazyLoading('workerWrite/detailVerity'),props: (route) => ({ pParams: route.params }) ,meta:{title:'客商申请记录详情'}},
            //     ]
            // },
            /*陪同管理员*/
            // {
            //     name: 'workerWith',path: 'workerWith',component: lazyLoading('workerWith/index'),redirect: '/workerWith/list',
            //     children:[
            //         {name: 'workerWithList',path: 'list',component: lazyLoading('workerWith/list'),meta:{title:'管理陪同接待员列表'}},
            //     ]
            // },
            /*酒店管理员*/
            // {
            //     name: 'workerHotel',path: 'workerHotel',component: lazyLoading('workerHotel/index'),redirect: '/workerHotel/customerList',
            //     children:[
            //         {name: 'workerHotelList',path: 'list',component: lazyLoading('workerHotel/customerList'),meta:{title:'全部参会人员列表'}},
            //     ]
            // },
            /*参会人员*/
            // {
            //     name: 'customer',path: 'customer',component: lazyLoading('customer/index'),redirect: '/customer/list',
            //     children:[
            //         {name: 'customerList',path: 'list',component: lazyLoading('customer/list'),meta:{title:'管理参会人员列表'}},
            //         {name: 'customerListShort',path: 'list/:type/:value',component: lazyLoading('customer/listShort'),meta:{title:'{typeName}{name}参会人员列表'}},
            //         {name: 'customerVerityList',path: 'verityList',component: lazyLoading('customer/listVerity'),meta:{title:'审核参会人员列表'}},
            //         {name: 'customerVerityDetail',path: 'verityDetail/:id',component: lazyLoading('customer/detailVerity'),props: (route) => ({ pParams: route.params }),meta:{title:'申请详情'} },

            //         {name: 'customerConferChildList',path: 'conferChildList/:id',component: lazyLoading('customer/listConferChild'),props: (route) => ({ pParams: route.params, pQuery: route.query }),title:"分活动参会人员管理{title}" },
            //         {name: 'customerWithList',path: 'WithList',component: lazyLoading('customer/listWith'),meta:{title:'陪同参会人员管理'} },
            //         {name: 'customerWithSubList',path: 'WithSubList',component: lazyLoading('customer/listWithSub'),meta:{title:'陪同参会人员信息管理'}},
            //     ]
            // },
            /*客商信息浏览*/
            // {
            //     name: 'leader',path: 'leader',component: lazyLoading('leader/index'),redirect: '/leader/customerList',
            //     children:[
            //         {name: 'leaderCustomerList',path: 'customerList',component: lazyLoading('leader/customerList'),meta:{title:'全部参会人员列表'}},
            //     ]
            // },
            /*数据备份*/
            // {
            //     name: 'DataBackUp',path: 'dataBackUp',component: lazyLoading('dataBackUp/index'),redirect: '/dataBackUp/list',
            //     children:[
            //         {name: 'DataBackUpList',path: 'list',component: lazyLoading('dataBackUp/list'),meta:{title:'备份管理'}},
            //     ]
            // },
        ]
    },
    {name: 'Login',path: '/login',component: lazyLoading('Auth/Login')},
    // {path: '*', redirect: '/'}
]